package com.budwk.app.waterquality.models;

import com.alibaba.fastjson.annotation.JSONField;
import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("waterquality.wk_forms_template_config")
@Comment("报表管理模板配置类")
@ApiModel(description = "报表管理模板配置类")
public class FormsTemplateConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("fnumber")
    @Comment("报表编号")
    @ApiModelProperty(description = "报表编号")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String fNumber;

    @Column("fname")
    @Comment("报表名称设置")
    @ApiModelProperty(description = "r_name")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String fName;

    @Column("generate_time")
    @Comment("生成时间")
    @ApiModelProperty(description = "生成时间")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private LocalDateTime generateTime;

    @Column("dm")
    @Comment("断面选择")
    @ApiModelProperty(description = "断面选择")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String dm;

    @Column("FXT")
    @Comment("采样时间")
    @ApiModelProperty(description = "采样时间")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private LocalDateTime fxt;

    @Column("ftype")
    @Comment("类别选择")
    @ApiModelProperty(description = "类别选择")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String fType;

    @Column("params")
    @Comment("参数")
    @ApiModelProperty(description = "参数")
    @ColDefine(type = ColType.TEXT)
    private String params;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private LocalDateTime createDate;

    @Column("create_id")
    @Comment("创建人")
    @ApiModelProperty(description = "创建人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String createId;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private LocalDateTime updateDate;

    @Column("update_id")
    @Comment("修改人")
    @ApiModelProperty(description = "修改人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String updateId;

    @Column("opinion")
    @Comment("说明")
    @ApiModelProperty(description = "说明")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String opinion;

    @Column("remark")
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String remark;

}
